<?php	
	/*
	 *	Sample Module template for "OH"
	 *  
	 *  use for write develop module interface
	 *  to encampusulate opensource script into "OH"
	 */
	
	// Interface function	
	function oh_module_css($tokens) {
		global $oh_object_css;
		return $oh_object_css;	
	} 

	// Option file required
	//require_once($oh['path']."...");
	//require_once($oh['path']."...");
	
	// Main class of module
	class oh_class_css {		
		function oh_class_css() {
		}
		function link($file) {
			return '<link type="text/css" href="'.$file.'" rel="stylesheet" />'."\n";
		}		
		function href($file) {
			return $this->link($file);
		}		
		function load($file) {
			return file_get_contents($file);
		}
		function embed($file) {
			echo '<style type="text/css">'."\n";
			echo $this->load($file);
			echo '</style>'."\n";
		}
	}
	
	// Main object of module
	global $oh_object_css;
	$oh_object_css = new oh_class_css();
?>
